package work.xiaohong.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDate;

import static io.swagger.v3.oas.annotations.media.Schema.AccessMode.READ_ONLY;

/**
 * 
 * @author xiaohong
 * @since 2021-10-24 10:35:40
 */
@Getter
@Setter
@TableName("test_first")
@Schema(name = "First对象", description = "")
public class First implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键",accessMode = READ_ONLY)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Integer id;

    @Schema(description = "bool类型")
    @TableField("booler")
    private Boolean booler;

    @Schema(description = "cesaf")
    @TableField("atea")
    private String atea;

    @Schema(description = "afdae")
    @TableField("tear")
    private String tear;

    @Schema(description = "fsda")
    @TableField("tea")
    private LocalDate tea;


}
